{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-sm-4">
            <h2>角色列表</h2>
            <!-- 导航部分 -->
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="{:url('admin/Account/menus')}">账户管理</a></li>
                <li><strong>角色列表</strong></li>
            </ol>
        </div>
        <div class="col-sm-8">
            <div class="title-action">
                <!-- 链接部分 -->
                <a href="{:url('admin/Account/role_add')}" class="btn btn-primary">新增角色</a>
            </div>
        </div>
    </div>
    <!-- 会员列表 -->
    <div class="wrapper wrapper-content  sonmenus-data">
        <!-- 表格主体 -->
        <table class="table table-bordered white-bg">
            <tr>
                <th>角色ID</th>
                <th>角色名称</th>

            </tr>
            {volist name="list" id="v"}
            <tr>
                <td >{$v['role_id']}</td>
                <td>{$v['r_username']}</td>
                <td>
                    &nbsp;&nbsp;<a href="{:url('admin/Account/permission',array('a_role'=>$v['role_id']))}" class="btn btn-xs btn-primary btn-outline">权限设置</a>

                    <a href="{:url('admin/Account/role_add',array('role_id'=>$v['role_id']))}" class="btn btn-xs btn-primary btn-outline">编辑</a>

                   &nbsp;&nbsp; {if condition="($v['role_id'] neq 2) AND ($v['role_id'] neq 3)"} <a href="#" class="btn btn-xs btn-danger btn-outline white-bg role-delete" value="{$v['role_id']}" >删除</a>{/if}
               </td>
            </tr>
           {/volist}
        </table>
    </div>


</body>
</html>
{include file="include:js" /}
